<!-- SEPARATION DES ZONES D'EDITION => ZONE ARTICLE-->
<DIV id='divArticle' align='center'>
  <DIV id='admin_top'>
  	<B><DIV id='titreZoneArticle'>Editer un article</DIV></B>
  </DIV>
  <DIV id='admin_content_back'>
    <DIV id='admin_content'>
  		<FORM method="POST" action="javascript:validArticle();">
  			<TABLE WIDTH="100%">
  			<TR ID="trSectionArticle">
  				<TD WIDTH="200px" valign="top"><B>Catégorie :</B></TD>
  				<TD><SELECT ID="idSections" NAME="section">
  				</SELECT>
  				</TD>
  			</TR>
  			<TR>
  				<TD WIDTH="200px" valign="top"><B>Titre :</B></TD>
  				<TD><INPUT ID="idTitreArticle" TYPE="text" NAME="titre" SIZE="40" ></TD>
  			</TR>
  			<TR>
  				<TD WIDTH="200px" valign="top"><B>Texte :</B></TD>
  				<TD><TEXTAREA ID="idTexteArticle" NAME="texte" COLS="60"></TEXTAREA></TD>
  			</TR>
  			<TR><TD colspan=2 align="center">
  			<BR><INPUT TYPE="Submit" Value="Valider"><BR><BR>
  			</TD></TR>
  			</TABLE>
  		</FORM>
  		<DIV ID="zoneIllustration" align='left'></DIV>
    </DIV>
  </DIV>
  <DIV id='admin_content_end'></DIV>
</DIV>



<!-- SEPARATION DES ZONES D'EDITION => ZONE ILLUSTATION-->
<BR />
<DIV ID="divIllustration" align='center'>
</DIV>

<!-- SEPARATION DES ZONES D'EDITION => ZONE SECTION-->

<BR>
<DIV id='divSection' align='center'>
  <DIV id='admin_top'>
  	<B>Ajouter une catégorie d'article</B>
  </DIV>
  <DIV id='admin_content_back'>
    <DIV id='admin_content'>
  		<FORM method="POST" action="JavaScript:addSectionToBase()">
  			<TABLE WIDTH="100%">
  			<TR>
  				<TD WIDTH="200px" valign="top"><B>Nom de section :</B></TD>
  				<TD><INPUT ID="idNewSection" TYPE="text" NAME="nomsec" SIZE="40"></TD>
  			</TR>
  			<TR><TD colspan=2 align="center">
  			<BR><INPUT TYPE="Submit" Value="Poster"><BR><BR>
  			</TD></TR>
  			</TABLE>
  		</FORM>
    </DIV>
  </DIV>
  <DIV id='admin_content_end'></DIV>
</DIV>
<BR>

<!-- SEPARATION DES ZONES D'EDITION => ZONE DE RETOUR Ó la page principale-->

<TABLE WIDTH="100%">
	<TD align="center"><A HREF="index.php?page=articles" class='blanc'>Revenir à la liste des articles</A></TD>
</TABLE>
<script src='templates/js/update_illustration.js'></script>
<script src='include/frameworks/jquery.jcarousel.pack.js'></script>
<script src='include/frameworks/jquery.autocomplete.js'></script>
<style type="text/css" media="all">@import "css/jquery.jcarousel.css";</style>
<style type="text/css" media="all">@import "css/jquery.autocomplete.css";</style>
<style type="text/css" media="all">@import "css/skins_jcarousel/tango/skin.css";</style>
<?
  
	if(!session_is_registered('login')) {
		 echo "<p>Vous devez ?re enregistr?pour acc?er ?cette page !</P>";
	 } else {	 
		 
  	$idart = -1;
  	if (isset($_GET['idart'])){
  	   $idart = $_GET['idart'];
    }
    
    echo "\n<script language='Javascript'>\n";
    echo "manageLayout($idart);\n";
    echo "getArticle($idart);\n";
    if ($idart == -1){
      echo "getSections();\n";
    }
    echo "</script>";
	
  }
?>
